package cn.edu.qfnu.oj.service;

import cn.edu.qfnu.common.service.BaseService;
import cn.edu.qfnu.oj.entity.Problem;
import cn.edu.qfnu.oj.entity.enums.Difficulty;

import java.time.LocalDateTime;

/**
 * OnlineJudge of QF_NU
 * Created by LS on 2017/7/18.
 */
public interface ProblemService extends BaseService<Problem, Integer>{

    Problem createProblem(String title, String content,
                       String inputDesc, String outputDesc, String sampleInput, String sampleOutput,
                       String classify, LocalDateTime createTime, String difficulty, String hint, String sources,
                       Integer memoryLimit, Integer timeLimit, String isAcm, String isTemp);

    Difficulty checkDifficulty(String difficulty);

    Boolean checkIfACM(String isACM);

    Boolean checkIfTemp(String isTemp);

    Problem modify(Problem problem, String title, String content,
                String inputDesc, String outputDesc, String sampleInput, String sampleOutput,
                LocalDateTime modifyTime, String classify, String difficulty, String hint, String sources,
                Integer memoryLimit, Integer timeLimit, String isAcm, String isTemp);

}
